Improved pre-compiled header support.
Fix compiler warnings.