Borrow gcc 4.9 fix from Bitmonero

This fix is sourced from here gets past compile error https://github.com/mikezackles/bitmonero/blob/c8626dff3fedd86cf697e49aec00c9e17c9015d8/CMakeLists.txt