OSX Port

Compiles on OSX. You should review the changes to Graph.cpp where I've mapped the pixel format from ARGB to BGRA - there might be an API call that's cleaner, or a more efficient approach