Remove the Macros of the time_r functions and replace them with actual functions

Signed-off-by: Dongsheng Song <dongsheng.song@gmail.com>
Updated imported headers to current Wine version.