add guard
update build.py to work with stock ghc 7.6.3