Fix linux require, automate build