Fix error shader name in error message.

And fix some warnings on Windows.
Implement our own simple preprocessor.