workaround GCC not recognizing sizeof as immediate

GCC builtins that require an immediate don't compile with sizeof as
argument unless -O2 is given. This workaround assigns the value of the
sizeof operator to an enum and uses the enum as parameter to the
builtin.

Signed-off-by: Matthias Kretz <kretz@kde.org>