Get rid of various compiler warnings