Fix printf specifier warning

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Add build parameters for debug builds

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>