Fixed _set_lat_long by adding missing include
Fixed double pointer decleration by using *a[n]; instead of **a = malloc(n * sizeof(type));
Removed warnings by adding prototypes