Updated glew and some work towards mingw compilation
assigned to @moebius
merged
mentioned in commit 60e6cf0c