Fix makefile
Check for overflow of outlen in blake2{s,b}_final

Fix warnings with -Wcast-qual

Fix blake2{sp,bp}_final's return value