eggtraymanager: Fix for style and modern C99 constructs