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