lib/mnit: use PRINT_ERROR instead of printf on portable code