Some progress
Trying to get rid of __attribute__ stuff, build is broken though