Fixed a few compiler warnings