Minor fixes in build_shader