cross-os: replaced win-secure functions
fopen_s was replaced with fopen