Added DESTDIR compatibility for netcdf builds that generate a dll via autotools.
Fixed several memory leaks reported by static analysis.
Fix ENABLE_RPC cmake option syntax
Merge pull request #89 from xantares/patch-1

Fix ENABLE_RPC cmake option syntax