Small preparation for mac compilation
After battling it out for ages have finally given up on trying to make it synchronous