Handle g++ libs correctly, since ant incorrectly does not use g++ as the linker,...