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