[dhewm3] Improve compatibility with new CMake macro