Added more compiler options based on compilation mode (including linker)
Added intial header contents - still need to verify and improve
Refactored scripts