mk: fix static linking with null pmd