[CMake][release] Fix config.h.cmake for psurface.

Fix wrong use of #cmakedefine.
[CMake][bugfix] Fix headercheck for headers below src/.

Reverting conditional CMake traversal of src/ subdirectory introduced
in commit b600783c3e51bbfbf4676f635095328234a964cf.