cleanup
cleanup + get code to run when built with gcc