Updated main c file and build scripts to include definitions from the resource file.