Add 'rmd' target, enhace io_self and add library version to libr2.so