big_chrom test failed in debian 9 compilation from source (in docker)

Hi, 

I am trying to build mosdepth from source in a debian9 based docker image.

It works perfectly fine when I am doing the same installation on CentSO 7.6. In order, I compile from source : 
1. Nim-1.2.4
2. htslib-1.10.2 with libdeflate-1.6 support (no libcurl and no plugins support)
3. mosdepth-0.2.9

All tests passed and all is good.

But in debian9 the mosdepth-0.2.9 step fails close to the end while running the test named **big_chrom**. The terminal hangs for approximately one minute and then the job `./mosdepth t tests/big.bam` finally gets killed leaving output files empty and the installation naturally stops.
 
In debian, I am starting with this to set up the environment:

```
   apt-get update
&& apt-get install -y git wget curl \
   autoconf automake build-essential \
   zlib1g-dev libbz2-dev liblzma-dev \
   libtool libpcre3-dev
```

Any idea of what could be the reason of this test failure ?

I have tried to install some other system libraries as well but no success so far.

Many thanks,
Anthony

PS: I can provide with a Makefile, links to sources or anything that might be useful.

