Change opk_extract_file so that it returns the size as well

Not returning the size and only the allocated buffer is obviously
not a smart idea, so this change was really needed.