nginx build fixes