fixed disasm test, added readbin to CI test

also inlined some functions in disasm.cpp and switched to static
linking, although on Mac OS X we still can't link.