Added checks for different platforms, AmigaOS4 includes proto