Fixing build on *nix.

beam.h was removed in this commit:
https://github.com/JohnLangford/vowpal_wabbit/commit/b01f6b25d797b60f19dbbc2d879c158c01974216