undefine input/output if they're not available

Change-Id: Ie750e42d382b5304c9ec568e7588bc82a36ed358
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>