Fix build on freebsd 8.2

Change-Id: I2b545d327a5e342a27f168f8304b494b2cdcc601