Fixing two GCC warnings

This commit fixes two warnings. I'm not exactly sure about the first "solution", but boost also uses it, so it might be ok.