Added compilation/test of rulextract to scripts.

build-test.sh and test.sh now do compilation and unit testing
for rule extraction sub project as well.