Merge pull request #117 from JanSimek/master

OS X support. #87
AStyle
Just to be safe. Changed Sys_Yield()
Replaced MACOS_X define with standardised __APPLE__. #87