Fix main to return 0 not 1

a correct C program should return 0 on successful completion