Make file structures dynamically allocated