Do some cmake configuration stuff