CppTools: Fix build on Windows

Change-Id: I21bc1146d29abee1c6ab5c128ca9876dec9a7799
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>