added base64_encode(), modified Makefile