cdrom: merge most of cdrom.c from latest pcsxr (r62214)