Beginnings of enabling static builds. Still to do: