Moved linker arguments to the end of the CC line, to avoid errors in some versions of GCC/LD.