Pass -rdynamic to the linker on Linux

This fixes the backtrace output in the signal handler.