Update build script and dist
Add logging capabillities
Fix UTF-8 handling when reading locale files