move rand_r to from pthread.h to stdlib.h
Add secapi wrapper for wmemmove_s

wmemmove_s implementation for msvcrt.
regenerate Makefile.in
Move _putenv and _wputenv out of _POSIX_ guard.

See http://msdn.microsoft.com/en-us/library/83zh4e6k.aspx
for more details.
Move _wspawn functions from process.h to stdio.h and wchar.h.

See http://msdn.microsoft.com/en-us/library/20y988d2.aspx
for more details.
Functions _spawnv, _spawnve, _spawnvp and _spawnvpe should be decared in both stdio.h and process.h.

See http://msdn.microsoft.com/en-us/library/20y988d2.aspx
for more details.
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.