Removed compiler debug flags and added optimization flags