Undef ERROR macro on Windows (defined by WinGDI).
Fixed Windows unloadPlugins implementation.
Determine PCH directory on Windows.