add _XOPEN_SOURCE and option to disable TR1
remove m4 prefix from ax_cxx_compile_stdcxx_11.m4