fix build for freebsd

Change-Id: Ic12e70fe1417ec2c3c7fc4d86e30ff83aab640ee