fix, add define for NO_CXX11 again
add _XOPEN_SOURCE and option to disable TR1