Ported to be able to compile on Mac. Also added version specific shaders

Signed-off-by: Arné Schreuder <arne@consulta.co.za>