tasks: Add option to build in debug mode