fix linux and mac debug builds