Update Makefile, fix function prototypes in file_io and any compile errors