separated source and build dir, fixes for build