Support position independent code, specifically 64-bit compiling with shared library