Replace strerror with strerror_r. Test SystemError.
Test LinkFile and invalid input to UTF8ToUTF16 and UTF16ToUTF8.