Fixed 17 compiler warnings