[FIX] fixed problems with negative sizeof values

 * affects win 32bit machines