Fixed order of g++ flags
Merge pull request #7 from ulikoehler/fixlinking

Fix linking