avoid various compiler warnings on various platforms