Improve c_src handling

Don't do anything if no c_src dir.
Add erl_interface headers and lib for compile and link.
Add $(LDFLAGS) to compile and link.