Added ability to compile and load mechanisms from mod files on Mac OS X.