added post_compile hook to build escript