Update ChangeLog and version to 0.4.0

To support support extra compile options