Added pre and post message callbacks to actors. Added static build.