After far too much time, this worked for me:

  1. Download libiconv and install using:
    ./configure
    make
    sudo make install
  2. Download glib2 and install using:
    CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib -lintl" \
    ./configure --with-libiconv=gnu
    make
    sudo make install
  3. Make sure pkg-config can find out about glib by typing:
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
  4. Download mdb-tools 0.5 (I encoutered several bugs with 6.1pre) and install using:
    ./configure --disable-shared
        make
        sudo make install