Make library code position independent
Fix twotest for my purposes