Creating a dependency on OS specific APIs solves this one niche problem but causes a hundred more.