Dump build log on stderr in case of failure

... during work-group size detection. This should make it easier to
debug this situation.