Add "extern" statement

"extern" allows for declaring a function through ExternalLinkage. This
function can be defined in native C/C++ code.
Update Makefile and code to compile