Cygwinでasioが動かない

無言で死ぬ。なーぜーだー

#define _WIN32_WINNT 0x0501
#define __USE_W32_SOCKETS

#include <iostream>
#include <string>

#include <boost/asio.hpp>

using namespace std;
using namespace boost::asio;

int main() {
  ip::tcp::iostream s("www.example.com", "http");

  s << "GET / HTTP/1.1\r\n";
  s << "\r\n";
  s << flush;

  string l;

  while (getline(s, l)) {
    cout << l << endl;
  }

  return 0;
}


~/work$ g++ foo.cpp -lws2_32 -lboost_system-gcc34-mt -o foo && ./foo
~/work$