changed compilation line dependencies order

for compilation errors with GCC
Merge pull request #1 from Raimce/master

changed compilation line dependencies order
Merge remote-tracking branch 'github/master' into fixing