add #cgo defines for all platforms