Avoid file open failures due to multiple fopen calls on Windows.
Fixed issues with multiple usFunctionAddResources calls on same target.