Made v2.4 handling of GPPortInfo more like v2.5

The functions gp_camera_get_port_info and gp_port_info_list_get_info now
allocate a GPPortInfo object in both versions. Previously when using
v2.4 you had to allocate your own and pass it to the function.