add detecting build type to helium build system #1