Basic compile time fixes for mac builds

These changes are needed to make beast_core compile on the mac