closed #3808: Removes unused files for MAC platform after using glfw3 to create opengl context

Also fix a bug of editbox, it works on mac again.