Fix compiler warnings & scrypt hashing with variable length