Added dummy implementations for io and fixed c99 errors