Fixed failing code generation test
Remove generated source on failure
Added stub functions for compiling and linking
Added compiler mode for compiling object files
Started to clean up phase handling and target type handling