fix for ASM failures on freebsd/netbsd