Append -fPIC flag for building shared object