Fix undef warnings