build: set environment before building

No comment..