enable debug flags and optimization attributes