Merge pull request #122 from 3Hren/v0.11

Fix compatibility with clang build using libstdc++.
backport locator.hostname config option to v0.11 branch
Merge pull request #124 from diunko/feature/hostname-option

Backport locator.hostname config option to v0.11 branch
[Bug Fix] Properly check platform macro definition.

This commit should fix #126.