fixed some small build issues