Fix reference bug.
Make VAST work on FreeBSD 10.