Fixed conditional compilation and added debug information

Signed-off-by: Christian Ege <k4230r6@gmail.com>