Probe for library without using STL

If dune-grid has been compiled with _GLIBCXX_DEBUG, linking the test
program will fail since probing doesn't get the flags that are specified
for the main project, and thus configuration halts. Instead, we use a
smaller test program which doesn't need proper STL linkage to compile
and link.
Merge pull request #239 from rolk/239_stlcheck

Probe for library without using STL
Merge branch 'master' into devel