lst2: fix some compiler errors under os x mavericks