Avoid using -rdynamic under cygwin/mingw.