cmake.mk: add support for overriding the source dir, and define the cmake prefix...