fix regression in linking for stem3.  This is a linux-only regression.