on Linux, statically link local libs