migrated to original netsurf signatures for bug fixing