Solve issue #103: Does not build on Linux <2.6.17, issue #108: unused_result warning on g++-4.8.1