Arti,
Here is a quick build of SDL v1.2.15 with my old AGA video code mixed in, haven't managed to test it yet but it should work OK with NetSurf AGA.
Threads and Timers are enabled in this build but not audio (same code as that v1.2.15 RTG I did for you).
Keyboard handling should also be better.
You should probably used these flags for NetSurf AGA (no point using DBL Buffer because NetSurf updates using dirty rectangles):
PHP Code:
flags = (SDL_FULLSCREEN|SDL_SWSURFACE|SDL_HWPALETTE);
This build is for 040 (needs an FPU!)
Update:
Debug build uploaded...