64-bit Windows fixes