Fix link order for GCC