* linux also need glew as neither mesa nor nvidia ship glcorearb.h
* fix gcc return value warning
* fix signed/ unsigned comparisons
* remove unsigned < 0 checks