add __filename to global externs