corrected code to comply with new version of TrikRuntime, fixed header
paths, include and library catalogues, PWM generator names, minor
compiler warnings