FIX: several compiler warnings