1. compile on macx
1. fix: can not show frame on macx

"Invalid drawable" in OpenGL/cocoa with Qt5