Upgrade guava to version 18.0, fix resulting deprecation warnings and compile errors