I find more than anything with terraforming, u need to redo the terraform once or twice to get it perfect...also i've used the ALT key to change buidling height usually if its more than one square height, there's a good chance a corner of the terraform won't happen and the building doesn't get placed, so i just reterraform the spot slightly moved and it fixes it...it's not perfect.