bugfix: add error message if platform-specific impl will be used on different platform.