allow librtmp to support multiple platforms