Turns out that strip Tkhtml30g.dll was removing all the debug symbols from the shared library (as @cyan-ogilvie kindly pointed out), so I edited the Makefile to change the strip value to true and after that it seems to be working fine.
strip Tkhtml30g.dll
true