I now tried osm2pgsql version 1.10.0, which works. So there seems to be a bug in the binaries for 1.11.0.