Cycles-Bake: fix for windows builds

(windows has no log2 it seems, among other errors)