Some makefile and bin/ebin magic