Added build constraints and additional cgo directives.