Fix compile errors & shader errors