fixed a few build warnings