fix mac os link error  (gcc 4.9)

add IOKit OpenGL and Cocoa framework dependence in order to build irrlicht unit on mac os x.