Reaction of 2-dimethylaminomethylene-1,3-diones with dinucleophiles. III. Synthesis of 5-acylpyrimidines and 7,8-dihydroquinazolin-5(6H)-ones: Reaction of 2-Dimethylaminomethylene-1,3-diones with Dinucleophiles. III