Fixed various issues with add_boost script.