Since mgorny is working on compatibility with multilib-portage I stripped all of the related code. So this should be the final version. If there are no objections I would like to commit.