cmake backwards compatibility fix