fixed out-source build problem