fix compile in tests prog

I have some issues on compile on my system, I fix it but I hope that it should be also ok in travis and @jlevallois