Small syntax updates so that AIR 3.8/Flex 4.11 will compile to swc.

This library is sweet! Using it to facilitate the AS3 portion of WebSocket communications in Flabe. It needed just a few small changes to compile into a swc via AIR 3.8/Flex SDK 4.11.