Now using cmake for compiling