update nginx build methods