Fix warnings
fix build failure on 64 bit platforms
Merge pull request #39 from buggins/master

Fix jpeg.d warnings; fix compilation under 64 bit