Fixed Makefile to automate CMake out-of-souce compilation