Fixed shared lib build.