Forgot #include<polyswf/allocator.h> in polyswf.h