Revert "Make exes in lib packages use dynamic linking."

Reverting this so a complete version of the feature can happen on a branch
instead.

This reverts commit de9df07d398d70255c852f4de53e3d14c4eeb0b4.