Core&Tools: Fix warnings and non-pch build