Enabled glew for Linux.
identifying the compiler by alias: c++ and cc rather than restricting both to g++
Added inline to work around the one definition rule.
Inlined functions in order to avoid multiple declarations.