pass in linker flags too
add check for dragonfly
fix asm issue on sun