use freeglut hack to avoid multi-thread, use system freeglut lib