fixed some more build bugs