update rakefile for convenient cmake setup