Added support for headless 64-bit builds on Mac