Switch to using static linking for X11 and Motif libs.