19188

Critical fixes: 
- Fixes half-baked error handling and a missing 'return' in OGlProgram.h
- Removes dependency on C99 functions apparently absent on WIndows (and the need for that dangerous remainder == fmod hack)

    printf("%f\n", remainder(+0.75f, 1.0f)); // output: -0.25 (!)
    printf("%f\n", fmod(+0.75f, 1.0f)); // output: 0.75

Further changes: Tidying on formatting and naming.

Branch has been reconverged and just been pulled on the master for you to have an easy merge.