--std=c11 does not permit typeof; using __typeof__ for tests

Signed-off-by: Mike Gerwitz <mike@mikegerwitz.com>