Removing duplicate -shared flag and correcting -fPIC typo