fix compiler warnings on 64bit