gcc needs the libraries after the source files