Add option to disable precompiled headers
To be able to use ccache. The use case is when one need to debug reconfiguration and build from scratch on Windows. Without ccache it takes some time and precompiled headers are not compatible with ccache.
Also fix compilation errors appeared due to absence of precompiled headers.