cmake: don't touch BASE_DIR, and add configurable parameters DEBUG, SOCK, CONF
SOCK and CONF path are configurable via config.h.in, and DEBUG is true if the build type is Debug