Comment was slightly misleading about the internal binary message format
Speed up binary log message packet creation by using various techniques to avoid OS calls, fixed a few compilation warning.