make it compiled in Glassfish 4 and Wildfly 8 Beta1
Merge pull request #51 from jeffzhang/wf_compile

make it compiled on Glassfish 4 and Wildfly 8 Beta1