compiling and running on mac