(WIP) migrate to waf-1.8.4

Test under following environments:

- RHEL: @kmaehashi
- Debian: @kumagi
- Ubuntu: @gintenlabo