fix compiler warnings on 64bit platforms