iBook and PowerBook optical drives will work in MacBooks (and MBPs) but you won't get the lid back on. The older drives are 12mm, Intel notebooks use 9.5mm drives. These are getting rare because the ATA versions have stopped production. Unibody units are using SATA ones.

FYI, Applecare does not cover MacBook batteries up to two years old under 300 cycles (or showing an X on the menu bar).
As for PC drives, I suspect the new slimline units have fewer firmware issues than the older ones but I have never actually found any non-Apple 9.5mm ATA drives for sale.

Bottom line is you cannot fit an iBook superdrive in a MacBook.