Use ar instead of libtool, and compile with -fPIC