Various fix for 1.0.7

* fix all build warnings
* include tests in the official archive