minor build fix for compile warning wrt alloca
missing initialisation bug. could cause incorrect settings for log cycling

on mingw32 at least the log trigger setting was wrong causing log cycles to
trigger after each entry.
expand on build checks for more unusual cases