Fix static build. Generate single libr.a