or1k-elf-loader: make it compatible with C++

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>