X64 LEDE build fails with package htop

When I try to build with htop, it fails with this error:
'libncursesw' is pre-selected (by minicom) and builds fine without htop.

checking for memmove... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strdup... yes
checking whether gcc -std=c99 option works... yes
checking if compiler supports -Wextra... yes
checking for refresh in -lncurses... no
checking for refresh in -lncurses6... no
checking for refresh in -lncurses... (cached) no
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
configure: error: missing libraries:  libncurses
Makefile:54: recipe for target '/home/strykar/github/lede-upstream-port/lede/build_dir/target-x86_64_musl-1.1.15/htop-2.0.2/.configured_yyyyyyy' failed
make[3]: *** [/home/strykar/github/lede-upstream-port/lede/build_dir/target-x86_64_musl-1.1.15/htop-2.0.2/.configured_yyyyyyy] Error 1
make[3]: Leaving directory '/home/strykar/github/lede-upstream-port/lede/feeds/packages/admin/htop'
package/Makefile:127: recipe for target 'package/feeds/packages/htop/compile' failed
make[2]: *** [package/feeds/packages/htop/compile] Error 2
make[2]: Leaving directory '/home/strykar/github/lede-upstream-port/lede'
package/Makefile:124: recipe for target '/home/strykar/github/lede-upstream-port/lede/staging_dir/target-x86_64_musl-1.1.15/stamp/.package_compile' failed
make[1]: *** [/home/strykar/github/lede-upstream-port/lede/staging_dir/target-x86_64_musl-1.1.15/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/strykar/github/lede-upstream-port/lede'
/home/strykar/github/lede-upstream-port/lede/include/toplevel.mk:194: recipe for target 'world' failed
make: *** [world] Error 2