allow to compute hash at compile time, fix issue 1926, partial fix issue...

...s 5279 and 6238