Fix recursive call.
Add windows support.