python/PyView: properly reference count parent objects

Before applying this patch, the output of the following
code was just empty:

def foo():
  s = metakit.storage(...)
  v = s.getas(...)

  return v

v = foo()
metakit.dump(v)

That's because the storage and its data already had been
reclaimed by Python before returning the view.

Hence metakit.dump(v) only printed empty lines and a total
row count (which was correct, BTW).
Merge pull request #4 from avdv/fix-refcount-pyview

python/PyView: properly reference count parent objects
Define SHLIB_LD in terms of $CXX instead of g++
Fix 9a89d38 in configure.in, regenerate configure
Merge pull request #6 from berkus/master

Add cmake project. Support clang, clean up warnings.
Merge branch 'master' of https://github.com/jcw/metakit
- Add CMake support for building Python and Tcl
Merge pull request #7 from gahr/master

Use $CXX insteaf of g++, support CMake to build the Python and Tcl bindings
Remove more warnings about dubious operations priority.
Use stdint.h for types.
Need to provide some defaults for the config.h.cmake file.
Use current build directory for proper in-tree builds.
Build demos and tests only when BUILD_TESTING is defined.

It's a built-in CMake variable defined by CTest module, see
http://www.vtk.org/Wiki/CMake/Testing_With_CTest
Add option to build with system STL.
Build both shared and static libs.
More warnings found by clang - writable static strings deprecated.
Add regression test.

Crashes in ctest for some reason, while working fine manually. Check.
Use specific datatypes.

@todo Include stdint.h?
Add install locations for demos and tests.
Add Travis-CI config.