Link in a more "mingw friendly" order (closes #1)