Remove generated directories and make gcm a true library.