move inclusion of compat.h into build.h
updates from doing SW conversion