use precompiled header on windows + fix compile issues