change g++'s parameters's order to allow linking for newest versions of g++

Seems that in newest g++ the order of parameters is different...

I hope to be helpful