Fixes for latest rust:
 * Rustpkg removed
 * Various things return Option / Result
 * `extern mod`
Fix lint warnings