fixed minor build problems