changed compilation line dependencies order

for compilation errors with GCC