Moved the shader attribute and uniform code out of the shader compilation unit.  Fixed implicit use of malloc warnings.