Make template compatible with OSX