Added version number and dependency file check to compilation_needed()