avr: Fix linking issues

Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>