add #cgo defines for all platforms
Merge pull request #6 from prusnak/master

add #cgo defines for all platforms