Fix netbsd compilation

Change-Id: If66868cd05baee1b70b4c45a3e2e7c2d39df62c0