Changes that are needed to get the emulator up and running, added also som .H/.h and headerfile Arduino.h that was kind of missing from main.cpp!? after these changes ubuntu compliles & links cleanly