File streams are closed at end of use rather than end of program; makefile comes with -O3 clag