correct a few build issues