fix mac os link error  (gcc 4.9)

add IOKit OpenGL and Cocoa framework dependence