Replace bin/ with a Makefile
Fix ambiguous instance error