Closes https://github.com/termux/termux-packages/issues/5242.
Also add -fPIC to CFLAGs for shared library builds (needed for at least the arm build to work).