Move cgo flag directives into a build constraint to allow custom build situations without conflicts