Fix queue logic, add destructor.
LEAN_AND_MEAN moved up to prevent curl including the whole winapi