CMake: remove -Wno-unused-result from CXXFLAGS

Also, clean up the remaining fgets() checks.
Merge pull request #106 from toxeus/noUnusedResult

CMake: remove -Wno-unused-result from CXXFLAGS