Fix building of static library.

Remove -shared and -fPIC flags from toolchain options, as these are
automatically handled by libtool now.  This will enable actually
building the static library.