I've got an old Core Duo Macbook and have the same issue. I went so far as to buy a USB bluetooth dongle as a replacement (cheaper than a wired keyboard). I haven't had an issue using the dongle, although I need to go through the entire 'setup a new device' every time I want to use my Apple bluetooth keyboard.
Not ideal, but better than it dropping mysteriously every 20-30 minutes of use.