motool: fixed installation and added ext. reloc and rebase support