Added some OS X support and fixed the EXR channel swapping issue.