* fix a lot of compiler warnings