[NUCLEO_F302R8] exporters to gcc_arm and coide

Add linker option -Wl,--wrap,main; so that __wrap_main in retarget.cpp
is called.