Improvements to c library functions and complex type handling.