Add support for recent pin and compilers

Those 2 commits contain the necessary changes to make the sampler compile with recent versions of pin and gcc