app: Fix build for OSX too.

This was broken in 7f23fbec34bd5790f0fab41a0975beed2786b8d8
This is similar to a25defa39e404f9e48863635ba2ac837559f573d