implemented 2-stage compilation: of subdirectory into archive and linking.