[build] allow compilers that doesn't have rdynamic option.