Fix shadow builds on unix systems

Change-Id: Ibbe253bd0470d92c09b3dfded8d3f8fb91af88da
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>