replaceall prototype and auto compile workout

Signed-off-by: Mahmut Bulut <mahmutbulut0@gmail.com>