Hack for Winblows write...write should take a const void*...not a void*...wtf windows...