Flattened conditionals in compileShader and createProgram.
Moved log #defines to separate file.
Moved shader stuff into shader_utils.c for easier reuse.
Delete shader objects after program has been linked.
Merge branch 'master' into threaded_rendering

Conflicts:
	jni/main.cpp