Makefile: add -rdynamic for more symbols
make debug() thread-safe