Merge pull request #14 from detunized/master

A lot of lines removed by introducing a base class for messages
Compiler warnings are errors
Fix signed comparison warnings, loop with the correct type
MType::MAX is not a valid message, just the maximum value of the enum to create arrays or vectors
Normalize and clean up .gyp files, add OS X missing compiler switches
Ignore build directory
Typo corrected