fixed build to work from both eclipse and command line