configure.ac: Fix -Wcast-align check.

There was a warning (resulting in an error) that no root class was
specified, causing the test to fail when it shouldn't, as warnings about
missing root classes were enabled recently.