Pyyaml improvement for FreeBSD compilation

This is a pull request on Github to improve compilation for FreeBSD, without having to pass extra options for compiling the pkg-provided libyaml.

https://github.com/yaml/pyyaml/pull/618