Haiku: Remove fopencookie() hack

Haiku does now provide the fopencookie() API in <stdio.h>.