fix 'platform-dependency' warning