--prefix=/MinGW/ can be the simpler colution. I published first working solution for my case, following instructions in https://groups.google.com/forum/#!msg/jansson-users/CTPFBeZ0ZWQ/W3uuOuWZegkJ