Use `setApplicationMenu` instead

`setMenu` is not available on OSX!