Build shared libraries