revert previous commit of use copy_n (C++11 only)
add memory
add posix feature test
simplify StopWatch define logic