Re-apply fix for windows build from Duncan: https://github.com/jeroenooms/jsonlite/commit/cd622711856cda5e9705c6298d9187285e7e5c66