Changed extension on test files to .txt because default c programs are .out
Added ifdef endif block to windows headers in global'
Added if blocks, platform specific precompiler flags, bug fixes