add missing include for mutex
use std include style
remove unused static function
Merge pull request #122 from mehlis/hwtimer-fixes

Hwtimer fixes