[Bug 238552] use --disable-static where appropriate