fix #ifdef in localtime_r header (from Valeriy)