Modifications to enable building on Linux machines.
Removed tabs and made portable sleep usable also for non decoding tasks
merged master