fixed small bugs in build files