Changes to Windows code so that Linux plays nice. Cannot
use syscall.Handle as it is not defined on Linux. Use
unsafe.Pointer instead.