Rewrited _nux native "readBytes()" function to prevent problems with events in MacOS X