add ifdef for enet version, turns out those functions only exist in later

versions