changed to cmake for compiling