-rdynamic cannot be used on mingw