[12724] Restore mmap extractor build with CMake by adding preprocessor

Based on [12701] by @Cyberium