Adds OSX compilation support.