Ensure that we build with static linking when requested, or do not build at all Reviewed-by: ohair, tbell