Changed the build setup to use cmake for using the same build
for different platforms using config.cmake files