Libmonkey: fix build and add a test for mimetypes