Fixed a bunch of compile errors, added turtle code to agentbased files, switched from C header format (.h) to cpp header format (.hpp) (this is just a name change) and reordered some turtle inclusions so that linking works properly.