Fixes 64bit compiler warnings.