[PATCH] Get closer to FreeBSD compile