fix erlang build, it can't find tgetent

this fixes erlang build which fails with:

```
  checking for kstat_open in -lkstat... (cached) no
  checking for tgetent in -lncurses... no
  checking for tgetent in -lcurses... no
  checking for tgetent in -ltermcap... no
  checking for tgetent in -ltermlib... no
  STDERR: configure: WARNING: No odbc library found skipping odbc
  configure: WARNING: "ODBC library - link check failed"
  configure: WARNING:
                  wxWidgets must be installed on your system.
  
                Please check that wx-config is in path, the directory
                where wxWidgets libraries are installed (returned by
                'wx-config --libs' or 'wx-config --static --libs' command)
                is in LD_LIBRARY_PATH or equivalent variable and
                wxWidgets version is 2.8.4 or above.
  configure: WARNING: No 'xsltproc' command found: the documentation cannot be built
  configure: WARNING: No 'fop' command found: going to generate placeholder PDF files
  configure: error: No curses library functions found
  configure: error: /bin/sh '/var/cache/omnibus/src/otp_src_R15B03/erts/configure' failed for erts
  ---- End output of ./configure --prefix=/opt/chef-server/embedded --enable-threads --enable-smp-support --enable-kernel-poll --enable-dynamic-ssl-lib --enable-shared-zlib --enable-hipe --without-javac --with-ssl=/opt/chef-server/embedded --disable-debug ----
  Ran ./configure --prefix=/opt/chef-server/embedded --enable-threads --enable-smp-support --enable-kernel-poll --enable-dynamic-ssl-lib --enable-shared-zlib --enable-hipe --without-javac --with-ssl=/opt/chef-server/embedded --disable-debug returned 1
```

ncurses `--with-termlib` enables building separate library and `tgetent` goes there. even if that is not enabled applying this patch unconditionally does not harm (it will check other libraries when not found in tinfo library)