changing directories for cross-platform compilation