windows: adding glew support / some fixes