Make if statement test for cgo