Link the main binaries with --export-dynamic so that the pthread emulation works correctly (reported by Jeremy Shaw).