Updated Sleep functions.
Fixes for GCC compiler errors and style fixes.
Removed unneeded GCC pragmas.
Merge remote-tracking branch 'origin/next' into mjcaisse