Fix for imported functions not being recognized as declarations