Automatically look up debugging flags. Closes #78