Updated build script for cross-compatibility.

Signed-off-by: Byron Sanchez <bfs5030@gmail.com>