more nginx tweaks, and tweaks for counterwallet build system