Build correctly in DEBUG mode