add platform selection to CGO