order of libraries in targets interchanged to comply with unix linker