title: Ncurses "initscr()" causes segmentation fault
body: <p>I am currently working on a project, where I have to implement a snake game which compiles just fine on itself with <code>g++</code>, the problem is when I try to integrate it into the greater project which compiles using <code>CMake</code> it throws a segmentation fault, even though I narrowed the whole main file down to being</p>
  
  <pre><code> #include &lt;ncurses.h&gt;
   int main(){
       initscr();
       return 0;
   }
  </code></pre>
  
  <p>I have no clue why this is happening and haven't been able to find a solution through other fora. I'm currently running Ubuntu 16.04 and cmake version 3.5.1 as well as ncurses5 v6.</p>