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