fixed issue: build failed on mac os