Prepare internal AppleWin build for CMake