Fix problems with --export-dynamic

Related to this issue: https://github.com/pspdev/psptoolchain/issues/26