made console window
only link with lua lib on apple systems