To build on 64-bit system the toolchain directory path must be changed (hardcoded "-x86" value  moved to $OS variable, to detect cpu arhitecture with 'uname -p')