Macros for future C++11 support
Test for localtime_r