added missing -lstdc++ flags