Set global -fPIC -DPIC compiler flags gcc.

Before the flags were set only mostly through the -fpic setting in some parts of the library and by the default setting of libtool (in a platform dependent way). This change ensures that these flags are used in all circumstances and used for the whole library.

Also set -fPIC for clang compiler globally.