workaround netbsd nan bug