Reworked build scripts for Linux