fix compilation in go1.0 via build constraint