All parts of simple_example compiling. Made some hacks.