fixed some warnings
add opengl test on osx