Fix mdk build issues

MDK requires GCompletion which is not avaiable when passing
-DG_DISABLE_DEPRECATED to the compiler. This is a known upstream
bug, but workaround it here by letting it be used.