latest version of gcc requires libraries be specified at end of link command line and be used in the library linking stage