added -std=c++0x to Makefile parm, changed char to int in system_slots.h