win32 fix
managed buffers
posCopyCallbackp and bug fixes