[cmake][bugfix] Exclude hidden headers from header checks.

Previously hidden unix files were included in the headercheck.
Unfortunately  emacs(server) tends to produces files such as
.#<headername>. This broke the constructed Makefiles. This patch
excludes such files from the list and fixes the issue.