Better matching of file extension
Update jansson and make windows build again