add Rakefile, supports building from command line