Add support for accessing IOSurfaces
Fix -Wsemicolon-before-method-body
Mark unused parameters to silence -Wunused-parameter
Fix -Wmismatched-parameter-types
Replace deprecated calls since we target OSX ≥ 10.8
Fix -Wsign-compare
Fix -Wincompatible-pointer-types
Merge pull request #2 from palana/master

Changes on the palana's fork.