Compile rlibs too.

This adds to `build.sh` a line to compile both dynamic and static libraries.