OS X support added. It dynamically loads some Carbon functions. But path to the framework is hardcoded as "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore" I'm not sure that it's ok, need advice from OS X programmers.