fix mac os link error

add IOKit OpenGL and Cocoa framework dependence
Merge pull request #22 from tingnan/develop

fix mac os link error  (gcc 4.9)