Libmonkey: fix build and add a test for mimetypes

related to #101 issue