EDIT: I applied the patch for the OpenGL call.
Thank you! Now the little examples (my SmileyTunnel and Mixer by Lainz) on this thread
forum.lazarus.freepascal.org/index.php/topic,32626.0.html will run on 32bit Linux too (tested with Linux Mint KDE GTK2).
I think I found a way to fix the icon loading.
I've tested your code and works like a charm (tested 32 and 64bit Linux Mint KDE GTK2 and doesn't break the icon loading on 32 and 64bit Windows 7). QT and other widgetsets I haven't tested.
Thank you very much fur your fast support!