Move Anchor out of rtld and cleanup some code.