Made exporting dll macros compatible with Linux.