Change macro MAIN to EXPORTED