Tools/mmaps: Fix build when building only tools

Closes #12631