fixing unix compile error