update rakefile to build extension directories