Fix make options.
Add log functions.