Added missing includes for 3dio.cpp. Fixes build errors on newer GCC versions above 0.4.8 and newer versions of ctrulib.