Fixed building with --disable-shared.