Adding -fPIC flag when building the shared lib