Build system improvements

Debug configuration fixes, commong.gypi cleanup, conditional
perf-snowcrash target (excluded on Windows).