Add conditionals in default shaders for using medium precision

Some devices have problems with high precision floats. I have tested
Nexus 4 and Nexus 7 with Android 4.4 having lightning artifacts when
using highp floats but work fine with mediump.
Merge pull request #1362 from rgngl/mediumpShaders

Add conditionals in default shaders for using medium precision