Purposes correction for Issue #4. Corrects generation of library only (without executable)