Create libcdr.rb

Reference: https://github.com/Homebrew/homebrew/pull/31162
Resubmitting PR instead of rebasing master (not sure how to do that in git yet so I'm using the github gui)
I'm not sure if the bottles work correctly. They most likely may need to be redone.
`system ENV.cxx,` instead.