add Cocoa Preference window, fix glew conflict