Make Mac main() function