X/Open Curses (XCURSES) is an X/Open Technical Specification; it is part of the Single UNIX(R) Specification as of SUSv4 (2013) but not part of POSIX (as of ISO/IEC 9945:2009/Cor 1:2013(E). (That is, SUSv4 is POSIX 2013 plus XCURSES 7).
Any SUS compliant platform will offer at least one XCURSES compliant library but methods of accessing it (e.g. compiler/linker flags) may vary; your build system should be able to help you there.
An alternative to getch is the lower-level termios function tcsetattr (c_lflag &= ~ECHO), which is specified by POSIX.