fix for MAC build