convert  enum FileError into enum class

but an attempt to get rid of the FILE_ prefix failed miserably whith
some bizarre compiler error message.