Support compilation on Linux

I was looking for a way to convert .DAT music files from an old game (Magic Carpet) to standard MID tracks, tried a few tools without success until I found your code.
This works flawlessly and compiles with 0 warnings, great code!
I'm on Linux with GCC 4.8.2, this pull request adds GCC compilation support.