fix for older cmake versions