MKLAB: Fix a few warnings and use the correct d_type