A couple of fixes/improvements for #cgo flags.