Remove `extern mod rustpkg`
Update for io::io_error being removed

See mozilla/rust#11946
Update for new locations of TreeMap and getopts