Apply c++11 changes, including consolidated logic for NUPIC_CORE and NUPIC_CORE_SOURCE
Undo changes not part of c++11 change.