if shared libs are not built, don't prepend -static to static lib names