[cvs-nhc98] Adjust foreign syntax depending on compiler versions.