Revert "Fix building for mako"

This reverts commit 501054636d17342f09aa4e202e8eb508ed2358b3.