Added headless rendering on osx