Remove debug code and add definitions and include directories.