Fix GCC 4.6 and AmigaOS build