title: Symbol lookup error on runtime
body: <p>I'm trying to build a <a href="https://code.google.com/p/lzham/" rel="nofollow">lzham</a> NodeJS binding, but I keep getting <code>symbol lookup error: [...] undefined symbol: [...]</code> errors whenever I try to call a function from lzham.</p>
  
  <p>I've included lzham like so :</p>
  
  <pre><code>#define LZHAM_DEFINE_ZLIB_API
  #include "lzham_static_lib.h"
  </code></pre>
  
  <p>And my <code>binding.gyp</code> file looks like this :</p>
  
  <pre><code>{
    "targets": [
      {
        "target_name": "lzham",
        "sources": [
          "lzham.cc"
        ],
        "include_dirs": [
          "&lt;!(node -e \"require('nan')\")",
          "lzham/include",
          "lzham/lzhamdecomp",
          "lzham/lzhamcomp",
        ],
      },
    ]
  }
  </code></pre>
  
  <p>I'm compiling on Linux.</p>
  
  <pre><code>var lzham = require('./build/Release/lzham.node'),
      buffer = require('fs').readFileSync('compressed');
  
  lzham.decompress(buffer);
  </code></pre>
  
  <p>This code calls a function defined in C++ that in turn calls <code>lzham_z_inflateInit2</code>, producing this error:</p>
  
  <pre><code>node: symbol lookup error: /node-lzham/build/Release/lzham.node: undefined symbol: lzham_z_inflateInit2
  </code></pre>