Fix build on Haiku
Make rdefs work