fixing minor build problems