cmake: apply debug flags to all sources