Okay, I get it to work now. Your build is fine but on newer ubuntu versions, the libpng12-0 is not available anymore and one has to install it manually.
For others that face this problem, follow the instructions here:
https://www.linuxuprising.com/2018/05/fix-libpng12-0-missing-in-ubuntu-1804.html