BUILD: Allow building with CC compiler on solaris

Patch provided by Laurent Blume (see bug #3614504).
TOOLS: Fix use of wxT macro

This fixes compilation with solaris CC compiler.
Patch provided by Laurent Blume (see bug #3614504).