Fix compile warnings
Dump shaders if there is a failure