Fixed up all compiler warnings.
Added missing header file to space.h