WIN32: Fix compiler warnings about deprecated functions
WIN32: Fix some insecure functions (plenty remaining)