Basic OS X support

Hi, this commit gets Q2Pro happily running on Mac OS X 10.7 (Lion). I'd like to add some packaging steps so that Mac users can have a .app as well, if that sounds good to you.