build: Make it easier to switch to static linking