Some emk build rules.
Fixed some integer size issues
Fixed build for avr.
Some playing around with AVR asm (not tested).