Fixed FileUtils::removeFile doesn't work on iOS
fixed compile error
add 'static' for global function
Merge pull request #8608 from Dhilan007/v3-fileutil-ios

issue #8568: Fixed FileUtils::removeFile doesn't work on iOS