Fix shader compilation/out-of-spec issues