doesnt compile on 32 bit, but this should make it work on 64 bits