fix mac compatibility issue at compile time (at least)