Fix jpeg.d warnings; fix compilation under 64 bit

jpeg.d - two warnings fixed - with warnings it's impossible to use this library with dub
huffman.d, matrix.d - .length cast to uint added. Github shows big diff - looks like different line endings.