Succeful Mac build

This commit contains changes made in order to successful build the
engine on Mac.