add caller information in warnings (thanks to sorah)