py: Clean up nlr*.S to make it easier to read; fix clang .bss error.

It seems that newer versions of clang don't like the .bss directive, so
we don't use it for OSX.

Addressing issues #865 and #875.
stmhal, modcc3k: Add ioctl to cc3k sockets so select works.
Fix timer overflow code.

Teensy doesn't need to worry about overflows since all of
its timers are only 16-bit.

For PWM, the pulse width needs to be able to vary from 0..period+1
(pulse-width == period+1 corresponds to 100% PWM)

I couldn't test the 0xffffffff cases since we can't currently get a
period that big in python. With a prescaler of 0, that corresponds
to a freq of 0.039 (i.e. cycle every 25.56 seconds), and we can't
set that using freq or period.

I also tested both stmhal and teensy with floats disabled, which
required a few other code changes to compile.
Fix error: unknown type name 'size_t'
teensy: Enable 8-byte stack alignment for IRQ Handlers.
Added pyb.elapsed_millis and pyb.elapsed_micros

tested using:
stmhal: https://github.com/dhylands/upy-examples/blob/master/elapsed.py
teensy: https://github.com/dhylands/upy-examples/blob/master/teensy/elapsed.py
Merge pull request #877 from dhylands/timer-overflow

Fix timer overflow code.
Merge pull request #878 from bvernoux/master

Fix error: unknown type name 'size_t'
Merge pull request #880 from dhylands/irq-align

teensy: Enable 8-byte stack alignment for IRQ Handlers.
Merge pull request #881 from dhylands/elapsed

Added pyb.elapsed_millis and pyb.elapsed_micros
stmhal: Fix edge case for timer PWM of 100%.

Also improve precision of calculating PWM percent in integer mode.
Also update teensy with edge case fix.
stmhal: Add label to internal flash drive on creation.
stmhal, fatfs: Use stdlib for string fns; make all private fns static.

We save some code bytes by using builtin string functions.
unix: Remove unnecessary #defines from config.
py: In asmthumb, clean up unit/int types and ite ops.
py: Add store r8 and store r16 ops to asm_x86 and asm_x64.
py: Make macro names in assemblers consistent, and tidy up a bit.
py: Fix types, uint -> mp_uint_t.
py: Allow viper to use ints as direct conditionals in jumps.

Allows things like: if 1: ...
py: Implement more binary ops for viper emitter.

This included a bit of restructuring of the assembler backends.  Note
that the ARM backend is missing a few functions and won't compile.