Added an error message when calling registerFileTypes() on a platform that doesn't support it.