Correct variables names and library linking

Correct typos in main CMake script and config header template matching
up CheckCXX11Features and CPP0X names for features.

Update test script to link regex test to Boost regex library. This
is a temporary fix and needs thinking about in more detail,
because won't always need to use Boost regex.