Updated main.c
Fixed build errors and updated build script