Fixed up OsX build for graphics.