Add --enable-shared and --enable-static flags.