rb: use the autotools to generate the library

the library is not built using the autotools.

the advantages of this improvement are:

* we can do a make install / make uninstall / make dist / and so on
* the library is not (unless specified) built as a shared and static
  library
* some portability issues will be easier to fix.