Fix some compiler warnings

Very low priority, some of these warnings only seem to occur on 64 bit systems.