Format duration in hh:mm:ss format
Fix test link problem due to incorrect ordering of libraries (?)