fixed compilation bug in prefs_common.c