Try and build a static binary when possible