enet cflags checking

There are now checks being done for enet, like there were in autotools. Sorry for the ugly shell stuff but it's still better than 40KLOC of autofoo, isn't it ;) It's written against plain sh so it should be portable (outside windows, and it's not needed on windows)