Support for cgo flags

Fixes #2.