ICuboid/Sphere: Fix GCC compile issues