fixes to linux build