Fix some build warnings in the script crate.