Replace the secured function for windows by the adequate preprocessor variable