It ended up not being an issue about environment. Build was just missing "ebin" subdirectory. Built everything using MSYS' toolchain. Thanks.