fixed several build warnings