Make librrpreload compile as -fPIC

Building on the ideas discussed in #1360, here's some fixes for `-fPIC` builds (notably on x86, but the work applies to x86-64, too).  The mysterious failures seen in #1160 and #1324 are now fixed!

91cc75e is required, otherwise `step_thread` fails reliably for me.