Workarounds for older CMake