add --unresolved flag for populating EXPORTED_FUNCTIONS