fix compiler warnings on 32bit