Added assembly macros, fixed Malloc import and linking.