Fix compiling the secondary library, Begin prefs integration