Implemented #1573. All functions marked as "used" will be automatically added to EXPORTED_FUNCTIONS.