Fix GCC linker options order.