fixing Unix compilation