fix cmake for unix build