Adjust include directories
Migrate to PotQueue/PotRingbuffer from old macros

Note that this required implementing cxa.c.