Solve issue #103: Does not build on Linux <2.6.17, issue #108: unused_result warning on g++-4.8.1
Merge pull request #109 from adamcavendish/master

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