Split mgostring into c/h files