It will work with latest GCC, remove --export-dynamic