[EXPORT][GCC_ARM] additional linker option for wrap main

Most makefile templates didn't use the -Wl,--wrap,main so that __wrap_main was not called.

New pull request to solve merge conflict of the previous one ( #709 )