make rtmpgw.c compileable