Try to fix cgo generated code for multiple Go versions ...

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>