public Library addNative(OperatingSystem operatingSystem, String name) {
    if ((operatingSystem == null) || (!operatingSystem.isSupported())) throw new IllegalArgumentException("Cannot add native for unsupported OS");
    if ((name == null) || (name.length() == 0)) throw new IllegalArgumentException("Cannot add native for null or empty name");
    if (this.natives == null) this.natives = new EnumMap(OperatingSystem.class);
    this.natives.put(operatingSystem, name);
    return this;
  }