Fix output of headers and Errors in CMakeLists

Seems as if the CmakeLists are already fixed in the freebsd branch, so which branch are you developing?