Fix app building for mac and linux