fixed #8, error checking when compiling shaders is now done correctly