The following line causes problem: friend static LRESULT CALLBACK PluginViewWndProc(HWND, UINT, WPARAM, LPARAM); since gcc 3.4.5 (on latest stable MinGW) chokes on that.
Created attachment 22198 [details] patch to fix the problem (as discussed with aroben and andersca)
Comment on attachment 22198 [details] patch to fix the problem (as discussed with aroben and andersca) r=me
Landed in r35124