fixed cmake bug for unix