Mac release build fix