Added C-API specs for more autoload resolution.
Fixed autoload resolution in C-API.