Implement compiling function declarations