Cleanup and fixes to hardware dialog...
Statically link librt if possible...