Removing some warnings

Added checks on return value of tvb_remaining_length, casting some strtoul calls.