added _scprintf macro to winpr because snprintf does not count characters on Windows.

Modified write_rdp_file_ macros for windows compatibility