Add debugging flags to build rules

for your consideration

Note: if there is some more OCaml-ic way to do this with build flags (the equivalent of `./configure --enable-debug` say), I am happy to learn. I've been using a variant of this pull request for some time to get proper debugging symbols in my core dumps, and I suspect others might appreciate them as well.


thanks,
Andrew