This should fix errors for 64 bit systems introduced by commit #be965ef0f744f5031279312ef2a44a882623a12b