fixed compiler warnings on 64bit