Redesigned configure/Makefile setup; adds yasm version check and handles Free/OpenBSD correctly