Fixed some compiler warnings in 64 bit builds.