Add resources directories in java
Modify CFLAGS and LDFLAGS in Makefile