fix visibility warnings in main crate (#2044)
fix visibility warnings in script crate (#2044)
auto merge of #2045 : Manishearth/servo/pub-struct-2044, r=SimonSapin

See #2044