Converted main.c to Unix file for compatibility