build specifications directory, compile gems with extensions