Make the standalone GUI build on Linux again

Fix some bit-rot.

- prefs_exit() and prefs_init() need to be included in the standalone GUI
- PrefsInit() has three arguments