mir: use standard c types