[libqb] [PATCH] BSD: port new changes to BSD