some more support for win64 (still incomlete)