added setup functions to build Rimeann sources