A bunch of platform-specific helper classes