add cast for 32bit-target
Merge branch 'master' into glfw3