Added ptrace constant definitions via a OS X-specific #include
Worked around the lack of a *nix clock_gettime() function
Ignore generated files
Removed problematic -soname parameter, and change -lGL to -fOpenGL
Added OS X-specific build setting conditionals