Why build errors when connecting timers in Quartus ii?
NIOS2_CPU_IMPLEMENTATION and other undeclared identifiers are defined in system.h file, generated with BSP. It looks like you forgot to include this library in your code.

Problems with implicit declarations are caused by not included sys/alt_timestamp.h library.