Build procedure changed to make compiling on other architectures easier.
