montage: fix void return-type on mavericks

fixes #25515