reorder link-time flags

reason: building on windows complained about undefined references to
functions defined in libws2_32, which was linked against, but not in
the right order.
Merge pull request #3 from duthils/link-flags-order

reorder link-time flags