Fixed error while building on Mac