Added OS X support.
Added Linux compiling support.