Fix compilation error

The error was during the compilation of object files to executables.
Previously I had the order of commands in the form:

    gcc $(LIBS) object_file.o -o exectuabe

But GCC nor Clang likes that, instead it is corrected to be of form:

    gcc object_file.o -o exectuabe $(LIBS)