add common flags to cmake