ref #1068 [libc++ vs libstdc++ handling]

- fixed forcing to use libstdc++ flag in configuration
- by default libstdc++ is used only if available by compiler
- added optional flag —with-libc++ which enforces to use libc++ instead
of libstdc++