Set CMAKE_INCLUDE_CURRENT_DIR to simplify things a bit.
Use MAKE_C_IDENTIFIER where available and needed.
Make indentation consistent.