more teak for config.h and -p options and makefile
teak makefile for win64 r.dll some exports not correct hide , this is back port from r 3.1 svn trunk
tweak trio source code for newer version mingw-w64 ,as it has already define snprintf  and vsnprintf function.